public static class ChargedItem.ChargedItemField extends Object implements XMLMarshallable
charged item generated by the SAP CC system during the charging process.
It contains:
ChargedItemThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargedItemField">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="type" type="ChargedItemFieldType" use="required" />
<xs:attribute name="value" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The XML tag name of this object: "chargedItemField".
|
| Constructor and Description |
|---|
ChargedItemField()
Builds an uninitialized charged item field.
|
ChargedItemField(String name,
ChargedItem.ChargedItemFieldType type,
Object value)
Builds a charged item field with a name, a
type and a value. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getName()
Gets the name of the field.
|
ChargedItem.ChargedItemFieldType |
getType()
Gets the
type of the field. |
Object |
getValue()
Gets the value of the field.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setName(String name)
Sets the name of the field.
|
void |
setType(ChargedItem.ChargedItemFieldType type)
Sets the
type of the field. |
void |
setValue(Object value)
Sets the value of the field.
|
public static final String TAG_NAME
public ChargedItemField()
public ChargedItemField(String name, ChargedItem.ChargedItemFieldType type, Object value)
type and a value.name - The name of the charged item fieldtype - The data type of the charged item fieldvalue - The value of the charged item fieldpublic String getName()
public void setName(String name)
name - The name of the charged item fieldpublic ChargedItem.ChargedItemFieldType getType()
type of the field.type of the fieldpublic void setType(ChargedItem.ChargedItemFieldType type)
type of the field.type - The type of the fieldpublic Object getValue()
type of the field.public void setValue(Object value)
type of the field.value - The value of the charged item fieldpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into